package com.ruoyi.creditlife.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 图书信息
对象 book_info
 * 
 * @author ddd
 * @date 2025-07-10
 */
public class BookInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 图书ID */
    private Long bookId;

    /** 图书单价 */
    @Excel(name = "图书单价")
    private BigDecimal bookValue;

    /** 最大借阅时间 */
    @Excel(name = "最大借阅时间")
    private Long maxBorrowDays;

    /** 图书可借阅数量 */
    @Excel(name = "图书可借阅数量")
    private Long bookNum;

    /** 超出借阅时间费率 */
    @Excel(name = "超出借阅时间费率")
    private BigDecimal overdueFeeRate;

    /** 图书名字 */
    @Excel(name = "图书名字")
    private String bookName;

    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }

    public void setBookValue(BigDecimal bookValue) 
    {
        this.bookValue = bookValue;
    }

    public BigDecimal getBookValue() 
    {
        return bookValue;
    }

    public void setMaxBorrowDays(Long maxBorrowDays) 
    {
        this.maxBorrowDays = maxBorrowDays;
    }

    public Long getMaxBorrowDays() 
    {
        return maxBorrowDays;
    }

    public void setBookNum(Long bookNum) 
    {
        this.bookNum = bookNum;
    }

    public Long getBookNum() 
    {
        return bookNum;
    }

    public void setOverdueFeeRate(BigDecimal overdueFeeRate) 
    {
        this.overdueFeeRate = overdueFeeRate;
    }

    public BigDecimal getOverdueFeeRate() 
    {
        return overdueFeeRate;
    }

    public void setBookName(String bookName) 
    {
        this.bookName = bookName;
    }

    public String getBookName() 
    {
        return bookName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bookId", getBookId())
            .append("bookValue", getBookValue())
            .append("maxBorrowDays", getMaxBorrowDays())
            .append("bookNum", getBookNum())
            .append("overdueFeeRate", getOverdueFeeRate())
            .append("bookName", getBookName())
            .toString();
    }
}
